home *** CD-ROM | disk | FTP | other *** search
- function top()
- {
- for(var _loc3_ in _root.top_win.top_btn)
- {
- trace(_root.top_win.top_btn[_loc3_]);
- if(typeof _root.top_win.top_btn[_loc3_] == "movieclip")
- {
- if(_root.top_win.top_btn[_loc3_]._name.substr(0,3) == "top")
- {
- _root.top_win.top_btn[_loc3_].onRelease = function()
- {
- var num = Number(this._name.substr(3,2));
- trace(num);
- Mouse.hide();
- this._visible = false;
- _root.cur1_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.model_tops_mc.gotoAndStop(num + 1);
- _root.cur1_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- };
- }
- }
- }
- for(_loc3_ in _root.bottoms_win.bottoms_btn)
- {
- trace(_root.bottoms_win.bottoms_btn[_loc3_]);
- if(typeof _root.bottoms_win.bottoms_btn[_loc3_] == "movieclip")
- {
- if(_root.bottoms_win.bottoms_btn[_loc3_]._name.substr(0,7) == "bottoms")
- {
- _root.bottoms_win.bottoms_btn[_loc3_].onRelease = function()
- {
- var num = Number(this._name.substr(7,2));
- Mouse.hide();
- this._visible = false;
- _root.cur2_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.model_bottoms_mc.gotoAndStop(num + 1);
- _root.cur2_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- };
- }
- }
- }
- for(_loc3_ in _root.fs_win.fs_btn)
- {
- trace(_root.fs_win.fs_btn[_loc3_]);
- if(typeof _root.fs_win.fs_btn[_loc3_] == "movieclip")
- {
- if(_root.fs_win.fs_btn[_loc3_]._name.substr(0,2) == "fs")
- {
- _root.fs_win.fs_btn[_loc3_].onRelease = function()
- {
- var num = Number(this._name.substr(3,2));
- if(_root.model_mc.wa_mc._currentframe == 2 && num == 6)
- {
- _root.model_mc.wa_mc.gotoAndStop(1);
- }
- else
- {
- Mouse.hide();
- this._visible = false;
- _root.cur4_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- if(num < 4)
- {
- _root.model_mc.model_shoes2_mc.gotoAndStop(num + 1);
- _root.model_mc.model_shoes_mc.gotoAndStop(1);
- }
- else if(num == 6)
- {
- _root.model_mc.wa_mc.gotoAndStop(2);
- }
- else
- {
- _root.model_mc.model_shoes_mc.gotoAndStop(num + 1);
- _root.model_mc.model_shoes2_mc.gotoAndStop(1);
- }
- _root.cur4_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- }
- };
- }
- }
- }
- for(_loc3_ in _root.dp_win.dp_btn)
- {
- trace(_root.dp_win.dp_btn[_loc3_]);
- if(typeof _root.dp_win.dp_btn[_loc3_] == "movieclip")
- {
- if(_root.dp_win.dp_btn[_loc3_]._name.substr(0,2) == "dp")
- {
- _root.dp_win.dp_btn[_loc3_].onRelease = function()
- {
- var num = Number(this._name.substr(3,2));
- if(_root.model_mc.dp_mc._currentframe == num + 1)
- {
- _root.model_mc.dp_mc.gotoAndStop(1);
- }
- else
- {
- Mouse.hide();
- this._visible = false;
- _root.cur6_mc.gotoAndStop(num + 1);
- this.onMouseDown = function()
- {
- sound_ini3();
- _root.model_mc.dp_mc.gotoAndStop(num + 1);
- _root.cur6_mc.gotoAndStop(1);
- Mouse.show();
- this._visible = true;
- delete this.onMouseDown;
- };
- }
- };
- }
- }
- }
- }
- function play_again_fun()
- {
- var _loc2_ = 0;
- while(_loc2_ <= change_mc_array.length)
- {
- this.model_mc[change_mc_array[_loc2_]].gotoAndStop(1);
- _loc2_ = _loc2_ + 1;
- }
- }
- function girl1()
- {
- if(this.model_mc.x0 and this.model_mc.y0)
- {
- this.model_mc._x = this.model_mc.x0;
- this.model_mc._y = this.model_mc.y0;
- this.model_mc._xscale = this.model_mc._yscale = 90;
- this.model_mc._rotation = 0;
- }
- }
- function sound_ini3()
- {
- _root.bg3_sound = new Sound();
- _root.bg3_sound.attachSound("s3");
- _root.bg3_sound.start();
- _root.bg3_sound.setVolume(100);
- }
- stop();
- this.onEnterFrame = function()
- {
- var _loc2_ = 1;
- while(_loc2_ <= 7)
- {
- _root["cur" + _loc2_ + "_mc"]._x = _xmouse;
- _root["cur" + _loc2_ + "_mc"]._y = _ymouse;
- _loc2_ = _loc2_ + 1;
- }
- };
- top();
- girl1();
-